<%
String path =  request.getContextPath();  
response.setHeader("Cache-Control","no-cache"); //HTTP 1.1 
response.setHeader("Pragma","no-cache"); //HTTP 1.0 
response.setDateHeader ("Expires", 0);
String skinPath = path+"/resources/skins/default";
String imgPath = skinPath+"/images";

session.setAttribute("skinPath", skinPath);
session.setAttribute("cssFile", imgPath);
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<script type="text/javascript"
	src="<%=path %>/resources/js/jquery-1.4.4.min.js"></script>
<script type="text/javascript"
	src="<%=path %>/resources/js/jquery-ui-1.8.7.custom.min.js"></script>

<script type="text/javascript"
	src="<%=path %>/resources/js/paperTable.js"></script>
<script type="text/javascript"
	src="<%=path %>/resources/js/jquery.form.js"></script>
<script type="text/javascript"
	src="<%=path %>/resources/js/formValidator.js"></script>
<script type="text/javascript"
	src="<%=path %>/resources/js/formValidatorRegex.js"></script>
<script type="text/javascript"
	src="<%=path %>/resources/js/select.js"></script>
<script type="text/javascript"
	src="<%=path %>/resources/js/shouye.js"></script>
<script type="text/javascript"
	src="<%=path %>/resources/js/innerhtml.js"></script>

<link rel="stylesheet"
	href="${skinPath}/css/common.css"
	type="text/css" />
<link rel="stylesheet"
	href="${skinPath}/css/style.css"
	type="text/css"/>
<link rel="stylesheet"
	href="${skinPath}/css/validator.css"
	type="text/css"/>
<link rel="stylesheet"
	href="${skinPath}/ui-lightness/jquery-ui-1.8.13.custom.css"
	type="text/css"/>
<script type="text/javascript"
	src="<%=path %>/resources/js/wingcms.js"></script>
<script type="text/javascript"
	src="${contextPath}/resources/js/MSClass.js"></script>
<script type="text/javascript"
	src="${contextPath}/resources/component/My97DatePicker/WdatePicker.js"></script>

<script language="JavaScript"> 
function correctPNG() // correctly handle PNG transparency in Win IE 5.5 & 6. 
{ 
    var arVersion = navigator.appVersion.split("MSIE") 
    var version = parseFloat(arVersion[1]) 
    if ((version >= 5.5) && (document.body.filters)) 
    { 
       for(var j=0; j<document.images.length; j++) 
       { 
          var img = document.images[j] 
          var imgName = img.src.toUpperCase() 
          if (imgName.substring(imgName.length-3, imgName.length) == "PNG") 
          { 
             var imgID = (img.id) ? "id='" + img.id + "' " : "" 
             var imgClass = (img.className) ? "class='" + img.className + "' " : "" 
             var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' " 
             var imgStyle = "display:inline-block;" + img.style.cssText 
             if (img.align == "left") imgStyle = "float:left;" + imgStyle 
             if (img.align == "right") imgStyle = "float:right;" + imgStyle 
             if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle 
             var strNewHTML = "<span " + imgID + imgClass + imgTitle 
             + " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";" 
             + "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader" 
             + "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
             img.outerHTML = strNewHTML 
             j = j-1 
          } 
       } 
    }     
} 

$(function(){
      correctPNG(); 
})
</script>

